home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98a.txt / 000025_icon-group-sender _Mon Feb 2 08:27:27 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id IAA00434
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 2 Feb 1998 08:27:26 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA10419; Mon, 2 Feb 1998 08:27:25 -0700
  7. To: icon-group@optima.CS.Arizona.EDU
  8. Date: Sun, 01 Feb 1998 04:04:28 GMT
  9. From: evans.nospam@gte.net (MJE)
  10. Message-Id: <6b0sd2$dad$1@gte2.gte.net>
  11. Organization: None
  12. Sender: icon-group-request@optima.CS.Arizona.EDU
  13. Subject: Graphical Text with Lines
  14. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  15. Status: RO
  16. Content-Length: 1065
  17.  
  18.  
  19. We need to produce a particular type of plot in Icon.  It shows a string with
  20. lines connecting certain characters.  Example:
  21.  
  22.      This is a proportional font
  23.      | |  |          ||        |
  24.      | |  |          ||        |
  25.      | ----------------        |
  26.      |               |         |
  27.      |               |         |
  28.      ---------------------------
  29.  
  30. According to the Icon book, I can indeed get text to print in a window in any
  31. font I like.
  32.  
  33. How can I find out the coordinates where particular characters in the string
  34. exist in the window, especially since the font is not monospaced but
  35. proportional?
  36.  
  37. This information is required to make sure that the connecting lines point to the
  38. right place.
  39.  
  40. I would be willing to entertain ideas about using a character-grid (monospaced)
  41. instead.  What I mean is, breaking the string up into characters and printing
  42. each of them in turn, defining the coordinates as I go along.  This technique is
  43. nonideal.  I would much rather just figure out where the characters are in the
  44. proportional font string.
  45.  
  46. Mark Evans
  47.  
  48.